<template>
  <div class="mod-config">
    <el-table
      :data="dataList"
      height="502"
      border
      v-loading="dataListLoading"
      @selection-change="selectionChangeHandle"
      style="width: 100%;">
      <!-- <el-table-column
        type="selection"
        header-align="center"
        align="center"
        width="50">
      </el-table-column> -->
      <el-table-column
        fixed
        prop="personalCode"
        header-align="center"
        align="center"
        label="个人编码"
        width="140">
      </el-table-column>
      <el-table-column
        fixed
        prop="name"
        header-align="center"
        align="center"
        label="姓名">
      </el-table-column>
      <el-table-column
        prop="death"
        header-align="center"
        align="center"
        label="检查结果">
      </el-table-column>
       <el-table-column
        prop="resultI"
        header-align="center"
        align="center"
        label="错误差额">
      </el-table-column>
      <el-table-column
        prop="totalMonthlyPension"
        header-align="center"
        align="center"
        label="原单位发放退休金"
        width="150">
      </el-table-column>
      <el-table-column
        prop="resultH"
        header-align="center"
        align="center"
        label="本年度月退休金总额"
        width="150">
      </el-table-column>
      <el-table-column
        prop="resultA"
        header-align="center"
        align="center"
        label="基本退休费合计"
        width="150">
      </el-table-column>
      <el-table-column
        prop="resultB"
        header-align="center"
        align="center"
        label="历次增加退休费合计"
        width="150">
      </el-table-column>
      <el-table-column
        prop="resultC"
        header-align="center"
        align="center"
        label="价格生活补贴合计"
        width="150">
      </el-table-column>
      <el-table-column
        prop="resultF"
        header-align="center"
        align="center"
        label="增加生活机制（补贴）合计"
        width="200">
      </el-table-column>
      <el-table-column
        prop="resultG"
        header-align="center"
        align="center"
        label="其它合计"
        width="150">
      </el-table-column>
      <el-table-column
        prop="workersClassification"
        header-align="center"
        align="center"
        label="职工分类"
        width="140">
      </el-table-column>
      <el-table-column
        prop="county"
        header-align="center"
        align="center"
        label="区县"
        width="140">
      </el-table-column>
      <el-table-column
        prop="street"
        header-align="center"
        align="center"
        label="街道、乡镇"
        width="140">
      </el-table-column>
      <el-table-column
        prop="handoverPeriod"
        header-align="center"
        align="center"
        label="移交时间段"
        width="140">
      </el-table-column>
    </el-table>
    <el-pagination
      @size-change="sizeChangeHandle"
      @current-change="currentChangeHandle"
      :current-page="pageIndex"
      :page-sizes="[10, 20, 50, 100]"
      :page-size="pageSize"
      :total="totalPage"
      layout="total, sizes, prev, pager, next, jumper">
    </el-pagination>
  </div>
</template>

<script>
  export default {
    data () {
      return {
        show3: false,
        typeOptions:[],
        retirementStatusList: [],
        myStatusList: [],
        originalTroopsList: [],
        countyList: [],
        streetList: [],
        nameList: [],
        nameListSpirt: [],
        dataForm: {
          key: '',
          street: ''
        },
        dataList: [],
        pageIndex: 1,
        pageSize: 10,
        totalPage: 0,
        dataListLoading: false,
        dataListSelections: [],
        addOrUpdateVisible: false,
      }
    },
    activated () {
      this.getDataList()
      //this.getName()
    },

    methods: {
      // 获取数据列表
      getDataList () {
        // alert(this.dataForm.name);
        this.dataListLoading = true
        this.$http({
          url: this.$http.adornUrl('/jxxm/retiredemployeeserror/list'),
          method: 'get',
          params: this.$http.adornParams({
            'page': this.pageIndex,
            'limit': this.pageSize
          }),
        }).then(({data}) => {
          if (data && data.code === 0) {
            this.dataList = data.page.list
            this.totalPage = data.page.totalCount
          } else {
            this.dataList = []
            this.totalPage = 0
          }
          this.dataListLoading = false
        })
      },
      // 每页数
      sizeChangeHandle (val) {
        this.pageSize = val
        this.pageIndex = 1
        this.getDataList()
      },
      // 当前页
      currentChangeHandle (val) {
        this.pageIndex = val
        this.getDataList()
      },
      // 多选
      selectionChangeHandle (val) {
        this.dataListSelections = val
      }
    }
  }
</script>
